package com.wolf.gulimall.product.feign;

import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 秒杀
 */
@FeignClient("gulimall-seckill")
public interface SeckillFeignService {

    /**
     * 查询当前skuId对应商品是否参与秒杀
     *
     * @return 商品信息
     */
    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
